package com.example.uitil;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Button;
import android.widget.Toast;

public  class myBroadCastReciver extends BroadcastReceiver {

    private final String ACTION_BOOT="com.example.broadcasttest.MY_BROADCAST";

    @Override
    public void onReceive(Context context, Intent intent) {
        if (ACTION_BOOT.equals(intent.getAction()));
        Toast.makeText(context,"你碰了一下",Toast.LENGTH_LONG).show();
    }
}